<%@ page import="com.xiaoyu.pojo.Person" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改信息</title>
    <link rel="stylesheet" href="static/css/update.css">
<%--    <script type="text/javascript" src="static/js/page.js" charset="UTF-8"></script>--%>
</head>
<body>
    <%
        Person person=(Person)request.getAttribute("person");
    %>
    <div class="container">
        <div class="add">
            <p>编辑信息</p>
            <form action="${pageContext.request.contextPath}/updatePerson" method="post">
                <input type="hidden" name="id" value="<%=person.getID()%>">
                <div class="clearfix"><span>name:</span> <input class="item" type="text" name="name" value="<%=person.getName()%>"></div>
                <div class="clearfix"><span>sex:</span> <input class="item" type="text" name="sex" value="<%=person.getSex()%>"></div>
                <div class="clearfix"><span>age:</span> <input class="item" type="text" name="age" value="<%=person.getAge()%>"></div>
                <div class="clearfix"><span>phone:</span> <input class="item" type="text" name="phone" id="tel" value="<%=person.getPhone()%>"></div>
                <input type="submit">
            </form>
        </div>
    </div>
</body>
</html>
